﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TestConfidenceReport
{
    class ResultCounter
    {
        private float iCreated;
        private float iExecuted;
        private float iActive;
        private float iPass;
        private float iFail;
        private float iBlocked;
        private float iNa;
        private float iOther;

        public ResultCounter()
        {
            iCreated = iExecuted = iActive = iPass = iFail = iBlocked = iNa = iOther = 0;
        }

        public float CreatedCount
        {
            get
            {
                return iPass + iFail + iBlocked + iNa + iOther;
            }
        }

        public float ExecutedCount
        {
            get
            {
                return iPass + iFail;
            }
        }

        public float ActiveCount
        {
            get
            {
                return iActive;
            }
            set
            {
                iActive = value;
            }
        }

        public float PassCount
        {
            get
            {
                return iPass;
            }
            set
            {
                iPass = value;
            }
        }

        public float FailCount
        {
            get
            {
                return iFail;
            }
            set
            {
                iFail = value;
            }
        }

        public float BlockedCount
        {
            get
            {
                return iBlocked;
            }
            set
            {
                iBlocked = value;
            }
        }

        public float NACount
        {
            get
            {
                return iNa;
            }
            set
            {
                iNa = value;
            }
        }

        public float OtherCount
        {
            get
            {
                return iOther;
            }
            set
            {
                iOther = value;
            }
        }
    }
}
